<script lang='ts' setup>
import TitleBar from '@/components/标题.vue'
import type { Phono } from '@/types';
import request from "@/assets/工具/网络请求"
import { onMounted, ref } from 'vue';
import { getPicture } from '@/assets/工具/工具类';
const phono = ref<Phono[]>([]);

onMounted(async() =>{
    try {
        const response = await request.doGet('/PhotographyCustomizationServlet');
        phono.value = response.data;
        console.log(phono.value);
        
    }catch (error){
    }
})

</script>

<template>
    <div class="组件根元素">
        <TitleBar title="人像写真"/>
        <div class="Profile">
        <div class="Location" v-for="date  of phono " :key="date.id">
            <img :src="getPicture(date.photoUrl)" alt="">
            <p class="Text">{{ date.photoText }}</p>
        </div>
        <div class="PictureK" @click="$router.push('/ChargeSchedule')">
            <div class="Picture"><img :src="getPicture('通用/谦.png')" alt="">收费标准</div>
            <div class="Picture">点击了解详情</div>
        </div>
      
       
    </div> 
    <div class="button">
            <div>立即咨询</div>
            <div>电话联系</div>
        </div>
    </div>
</template>

<style scoped>
.button{
    position: fixed;
    margin-top: 20px !important;
    display: flex;
    z-index: 100;
    bottom: 0px;
    border: 1px solid rgba(120, 78, 35, 1);
}
.button div:nth-child(1){
    color: rgba(120, 78, 35, 1);
}
.button div:nth-child(2){
    color: #FFFFFF;
    background: rgba(120, 78, 35, 1);

}
.button div{
   
font-size: 18px;
line-height: 80px;
text-align: center;
width: 187.5px;

}
.PictureK div:nth-child(2){
    color: rgba(214, 214, 214, 1);
    font-size: 18px;
    font-weight: 400px;
    padding-bottom: 120px;
}
.Picture{
    line-height: 30px;
    text-align: center;
  
}
.PictureK{
    padding-top: 18px;
    box-sizing: border-box;
width: 343px;
line-height: 100px;
height: 98px;
border: 1px solid rgba(120, 78, 35, 1);
}
.Picture img{
    width: 16px;
    height: 16px;
}
.Text{
position: absolute;
bottom: 20px;
left: 20px;
color: #FFF;
}
.Location{
    margin-bottom: 20px !important;
    position: relative;
}

.Location,img{

    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);

}
.Profile div,img{
    width: 343px;
    margin: auto;
}
.Profile{
    width: 343px;
    margin: auto;
   
}
</style>
